package com.li.mapper;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.li.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberMapper {

    Member findByTelephone(String telephone);


    void add(Member member);

    Integer findMemberCountBeforeDate(String month);
    Integer getMemberByDate(String date);
    Integer getTotalMember();
    Integer getMemberAfterDate(String date);


    List<Map<String, Object>> findMemberBySex();

    List<Map<String, Object>> findMemberByAge(String begin, String end);

   Page<Member> findByCondition(String queryString);

   Member findMemberById(int id);

   void edit(Member member);

   void delete(int id);
}
